package com.dxy.yesas2020goals.study.partone.disignpattern.compositepattern.safe;

public class Leaf extends Tree {

    public Leaf(String name) {
        super(name);
    }

    @Override
    public void show() {
        System.out.println(this.name);
    }

}